#include "StdAfx.h"
#include "dimage.h" 
#include <SFML/Graphics.hpp>

DImageSFML::DImageSFML(boost::shared_ptr<sf::Image> sfmlImage)
: m_image(sfmlImage)
{

}

DImageSFML::~DImageSFML()
{

}

unsigned int DImageSFML::width() const
{
    return m_image->GetWidth();
}

unsigned int DImageSFML::height() const
{
    return m_image->GetHeight();
}

boost::shared_ptr<sf::Image> DImageSFML::sfmlImage()
{
	return m_image;
}